package com.yssoft.entity.purchase;

import com.yssoft.entity.CommonEntity;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * t_purchase_detail 采购单详情
 * @author 
 */
@Table(name="t_purchase_detail")
public class TPurchaseDetail extends CommonEntity {
    @Id
    private Integer id;

    /**
     * 流水号
     */
    private String code;

    /**
     * 采购数量
     */
    private BigDecimal quantity;

    /**
     * 实际采购单价
     */
    private BigDecimal singlePrice;

    /**
     * 到货日期
     */
    private Date supplyTime;

    /**
     * 物料id（多对一）
     */
    private Integer tMId;

    /**
     * 采购申请明细id（多对一）
     */
    private Integer tDId;
    
    /**
     * 采购单详情状态
     */
    private String stat;

    /**
     * 采购单id（多对一）
     */
    private Integer tPId;
    /**
     * 企业id
     */
    private Integer tEId;

    /**
     * 备注
     */
    private String remarks;
    
    /**
     * 验收数量
     */
    private BigDecimal acceptQuantity;

    private static final long serialVersionUID = 1L;

	public BigDecimal getAcceptQuantity() {
		return acceptQuantity;
	}

	public void setAcceptQuantity(BigDecimal acceptQuantity) {
		this.acceptQuantity = acceptQuantity;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getSinglePrice() {
        return singlePrice;
    }

    public void setSinglePrice(BigDecimal singlePrice) {
        this.singlePrice = singlePrice;
    }

    public Date getSupplyTime() {
        return supplyTime;
    }

    public void setSupplyTime(Date supplyTime) {
        this.supplyTime = supplyTime;
    }

    public Integer gettMId() {
        return tMId;
    }

    public void settMId(Integer tMId) {
        this.tMId = tMId;
    }

    public Integer gettDId() {
        return tDId;
    }

    public void settDId(Integer tDId) {
        this.tDId = tDId;
    }

    public Integer gettPId() {
        return tPId;
    }

    public void settPId(Integer tPId) {
        this.tPId = tPId;
    }

    public Integer gettEId() {
        return tEId;
    }

    public void settEId(Integer tEId) {
        this.tEId = tEId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    
    public String getStat() {
        return stat;
    }
    
    public void setStat(String stat) {
        this.stat = stat;
    }
}